<template>
    <transition>
        <!-- slot 插槽承载内容分发的接口 -->
        <slot></slot>
    </transition>
</template>

<script>
export default {
  name: 'Fade'
}
</script>

<style lang='stylus' scoped>
  .v-enter,
  .v-leave-to{
    opacity: 0;
  }
  .v-enter-active,
  .v-leave-active{
    transition: opacity 1s linear;
  }
</style>
